package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformordermapping.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 跨境电商平台订单映射新增/修改 Request VO")
@Data
public class PlatformOrderMappingSaveReqVO {

    @Schema(description = "映射编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20670")
    private Long id;

    @Schema(description = "平台编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6047")
    @NotNull(message = "平台编号不能为空")
    private Long platformId;

    @Schema(description = "店铺编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20609")
    @NotNull(message = "店铺编号不能为空")
    private Long storeId;

    @Schema(description = "本地订单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3100")
    @NotNull(message = "本地订单ID不能为空")
    private Long localOrderId;

    @Schema(description = "本地订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "本地订单号不能为空")
    private String localOrderNo;

    @Schema(description = "平台订单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3718")
    @NotEmpty(message = "平台订单ID不能为空")
    private String platformOrderId;

    @Schema(description = "平台订单号")
    private String platformOrderNo;

    @Schema(description = "平台交易ID", example = "17321")
    private String platformTransactionId;

    @Schema(description = "映射状态（0未映射 1已映射 2映射失败）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "映射状态（0未映射 1已映射 2映射失败）不能为空")
    private Integer mappingStatus;

    @Schema(description = "同步状态（0未同步 1同步中 2同步成功 3同步失败）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "同步状态（0未同步 1同步中 2同步成功 3同步失败）不能为空")
    private Integer syncStatus;

    @Schema(description = "最后同步时间")
    private LocalDateTime lastSyncTime;

    @Schema(description = "同步错误信息")
    private String syncErrorMsg;

    @Schema(description = "平台订单状态", example = "2")
    private String platformStatus;

    @Schema(description = "平台支付状态", example = "1")
    private String platformPaymentStatus;

    @Schema(description = "平台履约状态", example = "1")
    private String platformFulfillmentStatus;

    @Schema(description = "平台订单总金额")
    private BigDecimal platformTotalAmount;

    @Schema(description = "平台货币")
    private String platformCurrency;

    @Schema(description = "平台创建时间")
    private LocalDateTime platformCreatedTime;

    @Schema(description = "平台更新时间")
    private LocalDateTime platformUpdatedTime;

    @Schema(description = "是否自动同步", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否自动同步不能为空")
    private Boolean autoSync;

}